//
//  CourseContentViewController.m
//  Codingke2016
//
//  Created by qianfeng on 16/6/1.
//  Copyright © 2016年 xujiangtao. All rights reserved.
//

#import "CourseContentViewController.h"
#import "CourseDetailViewController.h"

@interface CourseContentViewController()


@end

@implementation CourseContentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor =[UIColor whiteColor];
    
    UIButton *btn =[UIButton buttonWithType:UIButtonTypeCustom];
    btn.backgroundColor =[UIColor orangeColor];
    btn.frame =CGRectMake(100, 100,50,30);
    [btn setTitle:@"PUSH" forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(pushClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
}
-(void)pushClick{
    
    CourseDetailViewController *courseDetailVc =[[CourseDetailViewController alloc] init];
    [self.navigationController pushViewController:courseDetailVc animated:YES];
    
}

@end
